<extend name="Public/base"/>

<block name="body">
	<div class="main-titile">
		<h2><if condition="ACTION_NAME eq 'createCustomer'">新增<else/>编辑</if>客户</h2>
	</div>
	<form action="{:U('Customer/writeCustomer')}" method="post" class="form-horizontal" id="form">
		<div class="form-item">
			<label class="item-label">客户名称</label>
			<div class="controls">
				<input type="text" class="text input-large" name="name" value="{$data.name}">
			</div>
		</div>
		<div class="form-item">
			<label class="item-label">店铺编号</label>
			<div class="controls">
				<input type="text" class="text input-large" name="storenum" value="{$data.storenum}">
			</div>
		</div>
		<div class="form-item">
			<label class="item-label">联系人</label>
			<div class="controls">
				<input type="text" class="text input-large" name="contact" value="{$data.contact}">
			</div>
		</div>
		<div class="form-item">
			<label class="item-label">联系电话</label>
			<div class="controls">
				<input type="text" class="text input-large" name="phone" value="{$data.phone}">
			</div>
		</div>
		<div class="form-item">
			<label class="item-label">地址</label>
			<div class="controls">
				<input type="text" class="text input-large" name="address" value="{$data.address}">
			</div>
		</div>
		<div class="form-item">
			<label class="item-label">备注</label>
			<div class="controls">
				<label class="textarea input-large"><textarea id="auth-description" type="text" name="remark">{$data.remark}</textarea></label>
			</div>
		</div>
		<div class="form-item">
			<input type="hidden" name="id" value="{$data.id}">
			<button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
		</div>
	</form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Customer/index')}');
    </script>
</block>